package com.xy.wsl.api.sql.mapper;

import java.util.List;

public interface BaseMapper<T> {
    int insert(T t);
    int batchInsert(List<T> list);
    int deleteWithKey(Object key);

    T getWithKey(Object key);

    List<T> getListPage(String searchKey, int page, int pageSize);
    int getTotal(String searchKey);
    List<T> getList(String searchKey);
}
